package example.chapter12.submit;

import java.util.ArrayList;
import java.util.List;

import example.chapter12.model.Flower;

import com.opensymphony.xwork2.ActionSupport;

public class AjaxRemoteFormAction extends ActionSupport{
	private String name;
	private List<Flower> listFlowers;
	
	public String execute() throws Exception{
		listFlowers = new ArrayList<Flower>();
		listFlowers.add(new Flower("1", "rose"));
		listFlowers.add(new Flower("2", "cosmos"));
		return SUCCESS;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<Flower> getListFlowers() {
		return listFlowers;
	}

	public void setListFlowers(List<Flower> listFlowers) {
		this.listFlowers = listFlowers;
	}
	
}
